import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
  server:{
  	  proxy:{
  		  '/filmAPI':{
  			  target:'http://localhost:8000',
  			  changeOrigin:true,
  			  rewrite:(path)=>path.replace(/^\/filmAPI/, '')
  		  }
  	  }
  }

});
